<template>
  <div class="box">
    <div class="lie">
      <ul>
        <li style="color: rgb(224, 32, 32)">新品</li>
        <li>小米</li>
        <li>Redmi</li>
        <li>电脑</li>
        <li>手机</li>
        <li>电视</li>
        <li>空调</li>
        <li>冰箱</li>
      </ul>
    </div>
    <div class="commodity">
      <ul>
        <li v-for="(v, i) in arr" :key="i">
          <img :src="v.img" />
        </li>
      </ul>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      arr: [
        {
          img: "https://res.youpin.mi-img.com/youpinoper/4cb7732a_8788_4d96_8a69_92663e2ce56e.png@base@tag=imgScale&h=510&m=1&q=80&w=342",
        },
        {
          img: "https://res.youpin.mi-img.com/youpinoper/48480365_ca9d_4412_b179_344bd6f2204a.png@base@tag=imgScale&h=510&m=1&q=80&w=342",
        },
         {
          img: "https://res.youpin.mi-img.com/youpinoper/4cb7732a_8788_4d96_8a69_92663e2ce56e.png@base@tag=imgScale&h=510&m=1&q=80&w=342",
        },
        {
          img: "https://res.youpin.mi-img.com/youpinoper/48480365_ca9d_4412_b179_344bd6f2204a.png@base@tag=imgScale&h=510&m=1&q=80&w=342",
        },
         {
          img: "https://res.youpin.mi-img.com/youpinoper/4cb7732a_8788_4d96_8a69_92663e2ce56e.png@base@tag=imgScale&h=510&m=1&q=80&w=342",
        },
        {
          img: "https://res.youpin.mi-img.com/youpinoper/48480365_ca9d_4412_b179_344bd6f2204a.png@base@tag=imgScale&h=510&m=1&q=80&w=342",
        },
      ],
    };
  },
  props: ["imgs"],
};
</script>

<style scoped>
.box {
  /* background-color: rgb(148, 157, 166); */
  width: 100%;
  height: 100%;
}
.lie {
  width: 3.75rem;
  height: 0.43rem;
  border-radius: 0.07rem;
  margin: auto;
  background-color: #ffff;
}
.lie ul {
  display: flex;
  line-height: 0.43rem;
  white-space: nowrap;
  overflow: auto;
}
.lie ul li {
  margin-right: 0.3rem;
  margin-left: 0.15rem;
  font-size: 0.16rem;
}
.view {
  width: 3.75rem;
  height: 0.34rem;
  margin: auto;
  text-align: center;
  margin-top: 0.1rem;
}
.view img,
.view span {
  display: inline-block;
  color: #ffff;
  vertical-align: middle;
}
.view img {
  width: 0.6rem;
  height: 0.34rem;
}
.view span {
  font-weight: 600;
  font-size: 0.18rem;
}
.commodity ul li {
  margin-top: 0.15rem;
  margin-bottom: 0.1rem;
}
.commodity {
  margin: auto;
}
.commodity ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
.commodity ul li {
  width: 1.71rem;
  height: 2.55rem;
  margin:15px;
}
</style>
